﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Enumerable
{
    

    public class Tester
   {
      static void Main()
      {

          
          List<Player> PlayerList = new List<Player>();


          PlayerList.Add(new CClinet(0));
//          PcList.Add(new CClinet(1));
          //PcList.Add(new CClinet(2));


          Random Rand = new Random(1);

		  CClinet pc = PcList[0];

		  IEnumerable skill = new Skill(pc, 5);
		  pc.AddProcess(skill.GetEnumerator(), 0);

		  skill = new delSkill(pc, 4);
		  pc.AddProcess(skill.GetEnumerator(), 1);

          while (true)
          {

              for (int i = 0; i < 1; i++)
                  //for (int i = 0; i < 3; i++)
              {


                 pc = PcList[i];


                 if (false && pc.ProcessList.Count == 0)
                 {
                     int [] time = new int[3];
                     //time[0]= 1;
                     //time[1]= 3;
                     //time[2]= 6;
                     time[0] = 3;

					 //IEnumerable skill = new Skill(pc, time[i]);
					 // pc.AddProcess(skill.GetEnumerator(),0);

					 // skill = new delSkill(pc, 7);
					 // pc.AddProcess(skill.GetEnumerator(),1);


                 }

                 pc.Update();
                     
              


              
              }

          }
      }
}
